package com.xtoneict.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.HashSet;

/**
 *
 * @author liuwenwen
 * @since 2024-05-24
 *
 */
@TableName("role")
@Data
public class Role {

    @TableId(value = "role_id",type = IdType.AUTO)
    private Integer roleId;

    private String roleName;

    @TableField(exist = false)
    private HashSet<Permission> permissions;

}


